import React, { Component } from 'react'
import QcEventEmitter from "../util/qcevents"
class Bottom extends Component {
    state = {
        indexc : 0
    }
    componentDidMount(){
        QcEventEmitter.addListener("zhao",this.shou)
    }
    shou = (data)=>{
        console.log(data,"data")
        this.setState({
            indexc:data
        })
    }
    render() {
        return (
            <div>
                {
                    this.props.send&& this.props.send.length? 
                     <div>{this.props.send[this.state.indexc].con}</div>:""
                }
            </div>
        )
    }
}

export default Bottom
